Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Early check connection blacklisting #359

Open
wants to merge 4 commits into
base: v0.5.1
Choose a base branch
from

Conversation

arizz96
Copy link

@arizz96 arizz96 commented Dec 19, 2022

With these changes I want to fix the problem described in #258 where lot of connection attempts are performed when primary/replica DBs configuration isn't usable.

I found that _makara_connection method tries to establish connection everytime it's called when @connection is nil, also when blacklisted. I added an early check on blacklisting status.

I also added some unit tests for this method.

(closed PR for old version here)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant